C# Class MegaApi.Crypto

Afficher le fichier Open project: redwyre/MegaApi

Méthodes publiques

Méthode Description
a32_to_base64 ( uint a ) : string
a32_to_str ( uint a ) : byte[]
base64_to_a32 ( string s ) : uint[]
base64urldecode ( string data ) : byte[]
base64urlencode ( byte bytes ) : string
decrypt_key ( Sjcl cipher, uint a ) : uint[]
encrypt_key ( Sjcl cipher, uint a ) : uint[]
prepare_key ( uint a ) : uint[]
prepare_key_pw ( string password ) : uint[]
str_to_a32 ( byte b ) : uint[]
str_to_a32 ( string b ) : uint[]
stringhash ( string s, Sjcl aes ) : string

Method Details

a32_to_base64() public static méthode

public static a32_to_base64 ( uint a ) : string
a uint
Résultat string

a32_to_str() public static méthode

public static a32_to_str ( uint a ) : byte[]
a uint
Résultat byte[]

base64_to_a32() public static méthode

public static base64_to_a32 ( string s ) : uint[]
s string
Résultat uint[]

base64urldecode() public static méthode

public static base64urldecode ( string data ) : byte[]
data string
Résultat byte[]

base64urlencode() public static méthode

public static base64urlencode ( byte bytes ) : string
bytes byte
Résultat string

decrypt_key() public static méthode

public static decrypt_key ( Sjcl cipher, uint a ) : uint[]
cipher Sjcl
a uint
Résultat uint[]

encrypt_key() public static méthode

public static encrypt_key ( Sjcl cipher, uint a ) : uint[]
cipher Sjcl
a uint
Résultat uint[]

prepare_key() public static méthode

public static prepare_key ( uint a ) : uint[]
a uint
Résultat uint[]

prepare_key_pw() public static méthode

public static prepare_key_pw ( string password ) : uint[]
password string
Résultat uint[]

str_to_a32() public static méthode

public static str_to_a32 ( byte b ) : uint[]
b byte
Résultat uint[]

str_to_a32() public static méthode

public static str_to_a32 ( string b ) : uint[]
b string
Résultat uint[]

stringhash() public static méthode

public static stringhash ( string s, Sjcl aes ) : string
s string
aes Sjcl
Résultat string