base64 decode
base64_decode('base64');const b64string = /* whatever */;
const buf = Buffer.from(b64string, 'base64');
class Program
{
static void Main(string[] args)
{
var account = new ExternalAccount() { Name = "Someone" };
string json = JsonConvert.SerializeObject(account);
string base64EncodedExternalAccount = Convert.ToBase64String(Encoding.UTF8.GetBytes(json));
byte[] byteArray = Convert.FromBase64String(base64EncodedExternalAccount);
string jsonBack = Encoding.UTF8.GetString(byteArray);
var accountBack = JsonConvert.DeserializeObject<ExternalAccount>(jsonBack);
Console.WriteLine(accountBack.Name);
Console.ReadLine();
}
}
[Serializable]
public class ExternalAccount
{
public string Name { get; set; }
}
Also in PHP:
- code cache laravel
- Warning: file_get_contents(): SSL operation failed with code 1
- filter array in php with passing extra params
- 12th December 2020 date format in php
- Illuminate\Contracts\Container\BindingResolutionException Target class [SlugController] does not exist.
- actual url php
- composer global require laravel/installer version 5.61
- $get url php
- Get the content of a specific page (by ID)
- create laravel project in laravel/laravel
- case upper php
- cronjob cakephp
- cambiar entre versiones de php linux
- consolelog is it a thing in php
- basic date php
- date funciton
- check the existing image in s3 laravel
- errorLevel php no warnings
- create laravel project with version
- clear laravel.log
- count the no of characters in a string in phph
- console.php
- display error message in php
- ddev laravel setup