Cypher for .net

BytesExtension..::..AsEncryptedBytes Method (String, String, CipherMethod)

encrypt using a password and protection level to a ByteArray, You can decrypt it using the extension method AsDecryptFromBytes(array<Byte>[]()[][], KeyRing) method

Namespace:  System.Text
Assembly:  Walter.Cypher (in Walter.Cypher.dll)

Syntax


public static byte[] AsEncryptedBytes(
	string text,
	string password,
	CipherMethod cipherMethod
)

Parameters

text
Type: String
clear text to encrypt
password
Type: String
The password to use
cipherMethod
Type: Walter.Cypher..::..CipherMethod
The hashing method security complexity

Return Value

cyphered bytes