Platforms to show: All Mac Windows Linux Cross-Platform
Encryption and Hash
Encryption, decryption and hash functions.
- Globals
- Adler32MemoryMBS(adler as UInt32, buf as memoryblock, offset as Integer, length as Integer) as UInt32
- Adler32StringMBS(adler as UInt32, buf as string) as UInt32
- CalculateCRC16MemoryMBS(data as MemoryBlock, Start as UInt16 = 65535, Polynomial as UInt16 = &h1021, FinalXOR as UInt16 = 0, ReflectInput as boolean = false, ReflectOutput as boolean = false) as UInt16
- CalculateCRC16StringMBS(data as string, Start as UInt16 = 65535, Polynomial as UInt16 = &h1021, FinalXOR as UInt16 = 0, ReflectInput as boolean = false, ReflectOutput as boolean = false) as UInt16
- CalculateTOTPMBS(Key as String, timeNow as UInt64, timeStart as UInt64, timeStep as UInt64, digitCount as Integer) as UInt32
- CRC16MBS(data as string) as UInt16
- CRC32MemoryMBS(crc as UInt32, buf as memoryblock, offset as Integer, length as Integer) as UInt32
- CRC32StringMBS(crc as UInt32, buf as string) as UInt32
- CRC_32InMemContMBS(address as Ptr, length as Integer, prevCRC as UInt32) as UInt32
- CRC_32InMemMBS(address as Ptr, length as Integer) as UInt32
- CRC_32OfStrContMBS(s as String, prevCRC as UInt32) as UInt32
- CRC_32OfStrMBS(s as String) as UInt32
- CRC_CCITTInMemContMBS(address as Ptr, length as Integer, prevCRC as UInt32) as UInt32
- CRC_CCITTInMemMBS(address as Ptr, length as Integer) as UInt32
- CRC_CCITTOfStrContMBS(s as String, prevCRC as UInt32) as UInt32
- CRC_CCITTOfStrMBS(s as String) as UInt32
- CRC_DillonInMemMBS(bitWidth as Integer, address as Ptr, length as Integer) as String
- CRC_DillonOfStrMBS(bitWidth as Integer, s as String) as String
- CRC_DillonUInt64InMemMBS(bitWidth as Integer, address as Ptr, length as Integer) as UInt64
- CRC_DillonUInt64MBS(extends mem as memoryblock, bitWidth as Integer, offset as Integer, numBytes as Integer) as UInt64
- CRC_DillonUInt64OfStrMBS(bitWidth as Integer, s as String) as UInt64
- CurrentUnixTimeMBS as UInt64
- GetHash32MBS(s as string) as UInt32
- MD5MBS(data as memoryblock) as string
- MD5MBS(data as string) as string
- MD5StringMBS(data as memoryblock) as string
- MD5StringMBS(data as string) as string
- ModBusCalculateRTUMessageCRCMBS(data as string) as UInt16
- ValidateUUIDMBS(UUID as string, mode as Integer = 0, requiredVersion as Integer = 0) as string
- Classes
- class Argon2MBS
- method Calc(type as Integer = 0) as String
- method Constructor
- method Destructor
- method Verify(Hash as String, type as Integer = 0) as boolean
- property AssociatedData as String
- property Cost as Integer
- property Flags as Integer
- property Lanes as Integer
- property LastError as Integer
- property LastErrorMessage as String
- property MemoryCost as Integer
- property OutputLength as Integer
- property Password as String
- property Salt as String
- property Secret as String
- property Threads as Integer
- property Version as Integer
- const kErrorAdPtrMismatch = -21
- const kErrorAdTooLong = -9
- const kErrorAdTooShort = -8
- const kErrorAllocateMemoryCbkNull = -24
- const kErrorDecodingFail = -32
- const kErrorDecodingLengthFail = -34
- const kErrorEncodingFail = -31
- const kErrorFreeMemoryCbkNull = -23
- const kErrorIncorrectParameter = -25
- const kErrorIncorrectType = -26
- const kErrorLanesTooFew = -16
- const kErrorLanesTooMany = -17
- const kErrorMemoryAllocationError = -22
- const kErrorMemoryTooLittle = -14
- const kErrorMemoryTooMuch = -15
- const kErrorMissingArgs = -30
- const kErrorOk = 0
- const kErrorOutPtrMismatch = -27
- const kErrorOutputPtrNull = -1
- const kErrorOutputTooLong = -3
- const kErrorOutputTooShort = -2
- const kErrorPwdPtrMismatch = -18
- const kErrorPwdTooLong = -5
- const kErrorPwdTooShort = -4
- const kErrorSaltPtrMismatch = -19
- const kErrorSaltTooLong = -7
- const kErrorSaltTooShort = -6
- const kErrorSecretPtrMismatch = -20
- const kErrorSecretTooLong = -11
- const kErrorSecretTooShort = -10
- const kErrorThreadFail = -33
- const kErrorThreadsTooFew = -28
- const kErrorThreadsTooMany = -29
- const kErrorTimeTooLarge = -13
- const kErrorTimeTooSmall = -12
- const kErrorVerifyMismatch = -35
- const kFlagClearMemory = 4
- const kFlagClearPassword = 1
- const kFlagClearSecret = 2
- const kFlagDefault= 4
- const kMaxAssociatedDataLength = &hFFFFFFFF
- const kMaxLanes = &hFFFFFF
- const kMaxMemory = &hFFFFFFFF
- const kMaxOutputLength = &hFFFFFFFF
- const kMaxPasswordLength = &hFFFFFFFF
- const kMaxSaltLength = &hFFFFFFFF
- const kMaxSecretLength = &hFFFFFFFF
- const kMaxThreads = &hFFFFFF
- const kMaxTime = &hFFFFFFFF
- const kMinAssociatedDataLength = 0
- const kMinLanes = 1
- const kMinMemory = 8
- const kMinOutputLength = 4
- const kMinPasswordLength = 0
- const kMinSaltLength = 0
- const kMinSecretLength = 0
- const kMinThreads = 1
- const kMinTime = 1
- const kSyncPoints = 4
- const kTypeD = 0
- const kTypeI = 1
- const kVersion10 = &h10
- const kVersion13 = &h13
- class BlowfishMBS
- method Decrypt(iodata as memoryblock)
- shared method Decrypt(key as string, data as string) as string
- method DecryptCBC(data as string, byref temp as memoryblock) as string
- method DecryptCBC(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock)
- method DecryptCFB64(data as string, byref temp as memoryblock) as string
- method DecryptCFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
- method DecryptECB(data as string) as string
- method DecryptECB(idata as memoryblock, odata as memoryblock, offset as Integer)
- method DecryptOFB64(data as string, byref temp as memoryblock) as string
- method DecryptOFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
- method Encrypt(iodata as memoryblock)
- shared method Encrypt(key as string, data as string) as string
- method EncryptCBC(data as string, byref temp as memoryblock) as string
- method EncryptCBC(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock)
- method EncryptCFB64(data as string, byref temp as memoryblock) as string
- method EncryptCFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
- method EncryptECB(data as string) as string
- method EncryptECB(idata as memoryblock, odata as memoryblock, offset as Integer)
- method EncryptOFB64(data as string, byref temp as memoryblock) as string
- method EncryptOFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
- method SetKey(key as string)
- class CCCryptorMBS
- method Constructor(operation as Integer, Algorithm as Integer, options as Integer, key as Ptr, keyLength as UInt64, iv as Ptr = nil)
- method Constructor(operation as Integer, Algorithm as Integer, options as Integer, key as String, iv as Ptr = nil)
- shared method Crypt(Operation as Integer, Algorithm as Integer, Options as Integer, key as Ptr, KeyLength as UInt64, IV as Ptr, DataIn as Ptr, DataInLength as UInt64, DataOut as Ptr, DataOutAvailable as UInt64, byref DataOutMoved as UInt64) as Integer
- shared method Crypt(Operation as Integer, Algorithm as Integer, Options as Integer, key as string, IV as Ptr, DataIn as string, byref DataOut as string) as Integer
- method Final(DataOut as Ptr, dataOutAvailable as UInt64, byref dataOutMoved as UInt64)
- method GetOutputLength(inputLength as UInt64, Final as Boolean = true) as UInt64
- shared method RandomGenerateBytes(data as MemoryBlock) as integer
- method Reset(iv as Ptr = nil)
- method Update(dataIn as Ptr, dataInLength as UInt64, dataOut as Ptr, dataOutAvailable as UInt64, byref dataOutMoved as UInt64)
- method Update(dataIn as String, dataOut as Ptr, dataOutAvailable as UInt64, byref dataOutMoved as UInt64)
- property Handle as Integer
- property Lasterror as Integer
- const kCCAlgorithm3DES = 2
- const kCCAlgorithmAES128 = 0
- const kCCAlgorithmBlowfish = 6
- const kCCAlgorithmCAST = 3
- const kCCAlgorithmDES = 1
- const kCCAlgorithmRC2 = 5
- const kCCAlgorithmRC4 = 4
- const kCCAlignmentError = -4303
- const kCCBlockSize3DES = 8
- const kCCBlockSizeAES128 = 16
- const kCCBlockSizeBlowfish = 8
- const kCCBlockSizeCAST = 8
- const kCCBlockSizeDES = 8
- const kCCBlockSizeRC2 = 8
- const kCCBufferTooSmall = -4301
- const kCCCallSequenceError = -4309
- const kCCDecodeError = -4304
- const kCCDecrypt = 1
- const kCCEncrypt = 0
- const kCCInvalidKey = -4311
- const kCCKeySize3DES = 24
- const kCCKeySizeAES128 = 16
- const kCCKeySizeAES192 = 24
- const kCCKeySizeAES256 = 32
- const kCCKeySizeDES = 8
- const kCCKeySizeError = -4310
- const kCCKeySizeMaxBlowfish = 56
- const kCCKeySizeMaxCAST = 16
- const kCCKeySizeMaxRC2 = 128
- const kCCKeySizeMaxRC4 = 512
- const kCCKeySizeMinBlowfish = 8
- const kCCKeySizeMinCAST = 5
- const kCCKeySizeMinRC2 = 1
- const kCCKeySizeMinRC4 = 1
- const kCCMemoryFailure = -4302
- const kCCOptionCBCMode = 0
- const kCCOptionECBMode = 2
- const kCCOptionPKCS7Padding = 1
- const kCCOverflow = -4306
- const kCCParamError = -4300
- const kCCRNGFailure = -4307
- const kCCSuccess = 0
- const kCCUnimplemented = -4305
- const kCCUnspecifiedError = -4308
- class CCHMacMBS
- method Constructor(algorithm as Integer, key as memoryblock)
- method Constructor(algorithm as Integer, key as Ptr, keyLength as UInt64)
- method Constructor(algorithm as Integer, key as string)
- method Final(macOut as Ptr)
- method Finalize as Memoryblock
- shared method Hmac(algorithm as Integer, key as Ptr, keyLength as Integer, data as Ptr, dataLength as Integer, MacOut as Ptr)
- shared method Hmac(algorithm as Integer, key as String, data as String) as String
- method Update(data as memoryblock)
- method Update(data as Ptr, dataLength as UInt64)
- method Update(data as string)
- property Algorithm as Integer
- const kCCHmacAlgMD5 = 1
- const kCCHmacAlgSHA1 = 0
- const kCCHmacAlgSHA224 = 5
- const kCCHmacAlgSHA256 = 2
- const kCCHmacAlgSHA384 = 3
- const kCCHmacAlgSHA512 = 4
- const kCCMD5DigestLength = 16
- const kCCSHA1DigestLength = 20
- class CCMD2MBS
- class CCMD4MBS
- class CCMD5MBS
- class CCSHA1MBS
- class CCSHA224MBS
- class CCSHA256MBS
- class CCSHA384MBS
- class CCSHA512MBS
- class CipherMBS
- shared method aes_128_cbc as CipherMBS
- shared method aes_128_ccm as CipherMBS
- shared method aes_128_cfb1 as CipherMBS
- shared method aes_128_cfb128 as CipherMBS
- shared method aes_128_cfb8 as CipherMBS
- shared method aes_128_ctr as CipherMBS
- shared method aes_128_ecb as CipherMBS
- shared method aes_128_gcm as CipherMBS
- shared method aes_128_ofb as CipherMBS
- shared method aes_128_xts as CipherMBS
- shared method aes_192_cbc as CipherMBS
- shared method aes_192_ccm as CipherMBS
- shared method aes_192_cfb1 as CipherMBS
- shared method aes_192_cfb128 as CipherMBS
- shared method aes_192_cfb8 as CipherMBS
- shared method aes_192_ctr as CipherMBS
- shared method aes_192_ecb as CipherMBS
- shared method aes_192_gcm as CipherMBS
- shared method aes_192_ofb as CipherMBS
- shared method aes_256_cbc as CipherMBS
- shared method aes_256_ccm as CipherMBS
- shared method aes_256_cfb1 as CipherMBS
- shared method aes_256_cfb128 as CipherMBS
- shared method aes_256_cfb8 as CipherMBS
- shared method aes_256_ctr as CipherMBS
- shared method aes_256_ecb as CipherMBS
- shared method aes_256_gcm as CipherMBS
- shared method aes_256_ofb as CipherMBS
- shared method aes_256_xts as CipherMBS
- shared method bf_cbc as CipherMBS
- shared method bf_cfb64 as CipherMBS
- shared method bf_ecb as CipherMBS
- shared method bf_ofb as CipherMBS
- shared method BytesToKey(cipher as CipherMBS, digest as DigestMBS, Salt as MemoryBlock, InputKey as Memoryblock, IterationCount as Integer, byref OutputKey as memoryblock, byref IV as memoryblock) as boolean
- shared method camellia_128_cbc as CipherMBS
- shared method camellia_128_cfb1 as CipherMBS
- shared method camellia_128_cfb128 as CipherMBS
- shared method camellia_128_cfb8 as CipherMBS
- shared method camellia_128_ecb as CipherMBS
- shared method camellia_128_ofb as CipherMBS
- shared method camellia_192_cbc as CipherMBS
- shared method camellia_192_cfb1 as CipherMBS
- shared method camellia_192_cfb128 as CipherMBS
- shared method camellia_192_cfb8 as CipherMBS
- shared method camellia_192_ecb as CipherMBS
- shared method camellia_192_ofb as CipherMBS
- shared method camellia_256_cbc as CipherMBS
- shared method camellia_256_cfb1 as CipherMBS
- shared method camellia_256_cfb128 as CipherMBS
- shared method camellia_256_cfb8 as CipherMBS
- shared method camellia_256_ecb as CipherMBS
- shared method camellia_256_ofb as CipherMBS
- shared method cast5_cbc as CipherMBS
- shared method cast5_cfb64 as CipherMBS
- shared method cast5_ecb as CipherMBS
- shared method cast5_ofb as CipherMBS
- shared method CipherByName(name as string) as CipherMBS
- method CipherInit(key as memoryblock, IV as memoryblock, Encrypt as boolean) as Boolean
- shared method CipherNames as String()
- method Clear
- method Constructor
- method DecryptInit(key as memoryblock, IV as memoryblock = nil) as Boolean
- shared method desx_cbc as CipherMBS
- shared method des_cbc as CipherMBS
- shared method des_cfb1 as CipherMBS
- shared method des_cfb64 as CipherMBS
- shared method des_cfb8 as CipherMBS
- shared method des_ecb as CipherMBS
- shared method des_ede as CipherMBS
- shared method des_ede3 as CipherMBS
- shared method des_ede3_cbc as CipherMBS
- shared method des_ede3_cfb1 as CipherMBS
- shared method des_ede3_cfb64 as CipherMBS
- shared method des_ede3_cfb8 as CipherMBS
- shared method des_ede3_ecb as CipherMBS
- shared method des_ede3_ofb as CipherMBS
- shared method des_ede_cbc as CipherMBS
- shared method des_ede_cfb64 as CipherMBS
- shared method des_ede_ecb as CipherMBS
- shared method des_ede_ofb as CipherMBS
- shared method des_ofb as CipherMBS
- method EncryptInit(key as memoryblock, IV as memoryblock = nil) as Boolean
- method FinalizeAsMemory as memoryblock
- method FinalizeAsString as String
- shared method idea_cbc as CipherMBS
- shared method idea_cfb64 as CipherMBS
- shared method idea_ecb as CipherMBS
- shared method idea_ofb as CipherMBS
- shared method MaxBlockLength as Integer
- shared method MaxIVLength as Integer
- shared method MaxKeyLength as Integer
- method ProcessFile(InputFile as FolderItem, OutputFile as FolderItem) as boolean
- method ProcessMemory(data as memoryblock) as MemoryBlock
- method ProcessString(data as String) as string
- shared method rc2_40_cbc as CipherMBS
- shared method rc2_64_cbc as CipherMBS
- shared method rc2_cbc as CipherMBS
- shared method rc2_cfb64 as CipherMBS
- shared method rc2_ecb as CipherMBS
- shared method rc2_ofb as CipherMBS
- shared method rc4 as CipherMBS
- shared method rc4_40 as CipherMBS
- shared method rc4_hmac_md5 as CipherMBS
- shared method rc5_32_12_16_cbc as CipherMBS
- shared method rc5_32_12_16_cfb64 as CipherMBS
- shared method rc5_32_12_16_ecb as CipherMBS
- shared method rc5_32_12_16_ofb as CipherMBS
- shared method seed_cbc as CipherMBS
- shared method seed_cfb128 as CipherMBS
- shared method seed_ecb as CipherMBS
- shared method seed_ofb as CipherMBS
- method SetPadding(padding as boolean)
- property BlockSize as Integer
- property Encrypting as Boolean
- property Flags as Integer
- property IVLength as Integer
- property KeyLength as Integer
- property Mode as Integer
- property Name as String
- property Padding as Boolean
- property RC2KeyBits as Integer
- property RC5Rounds as Integer
- class DigestMBS
- method Clear
- method Constructor
- shared method DigestByName(name as string) as DigestMBS
- shared method DigestNames as String()
- method Final as memoryblock
- method FinalText as String
- shared method MD5 as DigestMBS
- shared method MDC2 as DigestMBS
- method Process(data as memoryblock)
- method Process(data as string)
- method Process(file as FolderItem) as boolean
- shared method RipeMD160 as DigestMBS
- shared method SHA1 as DigestMBS
- shared method SHA224 as DigestMBS
- shared method SHA256 as DigestMBS
- shared method SHA384 as DigestMBS
- shared method SHA3_224 as DigestMBS
- shared method SHA3_256 as DigestMBS
- shared method SHA3_384 as DigestMBS
- shared method SHA3_512 as DigestMBS
- shared method SHA512 as DigestMBS
- property BlockSize as Integer
- property Name as String
- property Size as Integer
- class ECDHEMBS
- method Constructor(CurveID as Integer)
- method DeriveSecretKey(peerKey as string) as string
- method Destructor
- shared method LastError as String
- method PublicKey as string
- property CurveID as Integer
- property CurveIDName as String
- property ParamsInfo as String
- property PeerKeyInfo as String
- property PrivateKeyInfo as String
- const NID_secp112r1 = 704
- const NID_secp112r2 = 705
- const NID_secp128r1 = 706
- const NID_secp128r2 = 707
- const NID_secp160k1 = 708
- const NID_secp160r1 = 709
- const NID_secp160r2 = 710
- const NID_secp192k1 = 711
- const NID_secp224k1 = 712
- const NID_secp224r1 = 713
- const NID_secp256k1 = 714
- const NID_secp384r1 = 715
- const NID_secp521r1 = 716
- const NID_sect113r1 = 717
- const NID_sect113r2 = 718
- const NID_sect131r1 = 719
- const NID_sect131r2 = 720
- const NID_sect163k1 = 721
- const NID_sect163r1 = 722
- const NID_sect163r2 = 723
- const NID_sect193r1 = 724
- const NID_sect193r2 = 725
- const NID_sect233k1 = 726
- const NID_sect233r1 = 727
- const NID_sect239k1 = 728
- const NID_sect283k1 = 729
- const NID_sect283r1 = 730
- const NID_sect409k1 = 731
- const NID_sect409r1 = 732
- const NID_sect571k1 = 733
- const NID_sect571r1 = 734
- const NID_wap_wsg_idm_ecid_wtls1 = 735
- const NID_wap_wsg_idm_ecid_wtls10 = 743
- const NID_wap_wsg_idm_ecid_wtls11 = 744
- const NID_wap_wsg_idm_ecid_wtls12 = 745
- const NID_wap_wsg_idm_ecid_wtls3 = 736
- const NID_wap_wsg_idm_ecid_wtls4 = 737
- const NID_wap_wsg_idm_ecid_wtls5 = 738
- const NID_wap_wsg_idm_ecid_wtls7 = 740
- const NID_wap_wsg_idm_ecid_wtls8 = 741
- const NID_wap_wsg_idm_ecid_wtls9 = 742
- const NID_X9_62_c2pnb163v1 = 684
- const NID_X9_62_c2pnb163v2 = 685
- const NID_X9_62_c2pnb163v3 = 686
- const NID_X9_62_c2pnb176v1 = 687
- const NID_X9_62_c2pnb208w1 = 693
- const NID_X9_62_c2pnb272w1 = 699
- const NID_X9_62_c2pnb304w1 = 700
- const NID_X9_62_c2pnb368w1 = 702
- const NID_X9_62_c2tnb191v1 = 688
- const NID_X9_62_c2tnb191v2 = 689
- const NID_X9_62_c2tnb191v3 = 690
- const NID_X9_62_c2tnb239v1 = 694
- const NID_X9_62_c2tnb239v2 = 695
- const NID_X9_62_c2tnb239v3 = 696
- const NID_X9_62_c2tnb359v1 = 701
- const NID_X9_62_c2tnb431r1 = 703
- const NID_X9_62_prime256v1 = 415
- class ECKeyMBS
- shared method BuiltInCurves as Dictionary
- method Constructor
- method Copy as ECKeyMBS
- method Generate as Boolean
- method GetPrivateKey(Hex as Boolean) as String
- method GetPublicKey(byref x as String, byref y as String, Hex as Boolean) as Boolean
- method GetPublicKeyPoint as String
- shared method KeyByCurveName(CurveID as Integer, Generate as Boolean = true) as ECKeyMBS
- shared method OpenPrivateKey(Data as String) as ECKeyMBS
- shared method OpenPublicKey(Data as String, CurveID as Integer) as ECKeyMBS
- method PrivateKey as String
- method PublicKey as String
- method SetPrivateKey(Value as String, Hex as Boolean) as Boolean
- method SetPublicKey(x as String, y as String, Hex as Boolean) as Boolean
- method SetPublicKeyPoint(Value as String) as Boolean
- method Sign(Data as String) as String
- method Verify(SignatureData as String, Data as String) as Boolean
- property CanSign as Boolean
- property Description as String
- property Flags as Integer
- property Size as Integer
- property Valid as Boolean
- class MD5DigestMBS
- method clear
- shared method HashFile(file as FolderItem, Hex as boolean = true) as string
- shared method HMAC(key as string, data as string) as string
- shared method MD5(data as memoryblock) as string
- shared method MD5(data as string) as string
- shared method MD5String(data as memoryblock) as string
- shared method MD5String(data as string) as string
- method Process(data as memoryblock)
- method Process(Data as string)
- property Value as string
- class OpenSSLExceptionMBS
- class PKeyMBS
- method Constructor
- method Copy as PKeyMBS
- shared method Open(Data as MemoryBlock) as PKeyMBS
- shared method Open(Data as String) as PKeyMBS
- method PrivateKeyData as String
- method PublicKeyData as String
- property Bits as Integer
- property DescriptionParams as String
- property DescriptionPrivateKey as String
- property DescriptionPublicKey as String
- property Handle as Integer
- property ID as Integer
- property PrivateKey as String
- property PublicKey as String
- property Size as Integer
- property Type as Integer
- property TypeString as String
- class RC4MBS
- method Constructor(key as MemoryBlock)
- method Constructor(key as string)
- method Crypt(data as Memoryblock) as Memoryblock
- method Crypt(data as string) as string
- class RC5MBS
- method Constructor(key as MemoryBlock, rounds as Integer = 16)
- method Constructor(key as string, rounds as Integer = 16)
- method decrypt(data as Memoryblock) as Memoryblock
- method decrypt(data as string) as string
- method decryptCBC(data as Memoryblock, iv as memoryblock = nil) as Memoryblock
- method decryptCBC(data as string, iv as memoryblock = nil) as string
- method decryptCFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock
- method decryptCFB64(data as string, iv as memoryblock, byref num as Integer) as string
- method encrypt(data as Memoryblock) as Memoryblock
- method encrypt(data as string) as string
- method encryptCBC(data as Memoryblock, iv as memoryblock = nil) as Memoryblock
- method encryptCBC(data as string, iv as memoryblock = nil) as string
- method encryptCFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock
- method encryptCFB64(data as string, iv as memoryblock, byref num as Integer) as string
- method encryptOFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock
- method encryptOFB64(data as string, iv as memoryblock, byref num as Integer) as string
- class SHA1MBS
- method Add(data as string)
- shared method Hash(data as string) as string
- shared method HashFile(file as FolderItem, Hex as boolean = true) as string
- shared method HashText(data as string) as string
- shared method HMAC(key as string, data as string) as string
- method Reset
- method Result as string
- method ResultText as string
- class SHA256MBS
- method Add(data as string)
- shared method Hash(data as string) as string
- shared method HashFile(file as FolderItem, Hex as boolean = true) as string
- shared method HashText(data as string) as string
- shared method HMAC(key as string, data as string) as string
- method Reset
- method Result as string
- method ResultText as string
- class SHA3MBS
- method Add(data as memoryblock)
- method Add(data as string)
- method Constructor(Rate as UInt32, capacity as UInt32)
- shared method Hash(data as string, Rate as UInt32, capacity as UInt32, outputLength as Integer) as string
- shared method HashText(data as string, Rate as UInt32, capacity as UInt32, outputLength as Integer) as string
- method Reset(Rate as UInt32, capacity as UInt32)
- method Result(outputLength as Integer) as string
- method ResultText(outputLength as Integer) as string
- class SHA512MBS
- method Add(data as string)
- shared method Hash(data as string) as string
- shared method HashFile(file as FolderItem, Hex as boolean = true) as string
- shared method HashText(data as string) as string
- shared method HMAC(key as string, data as string) as string
- method Reset
- method Result as string
- method ResultText as string
- class UUIDMBS
- shared method randomUUID as UUIDMBS
- shared method UUID as UUIDMBS
- shared method Validate(UUID as string, mode as Integer = 0, requiredVersion as Integer = 0) as string
- method ValueFormattedString(WithBrackets as Boolean = true) as String
- method ValueHexString as String
- method ValueMemory as Memoryblock
- method ValueString as String
- property Lasterror as Integer
- property Valid as Boolean
- class X509MBS
- shared method CheckCertificates(rootCertificates() as X509MBS, certificate as X509MBS, intermediates() as X509MBS = nil) as Boolean
- method Constructor
- method Copy as X509MBS
- method Data as String
- shared method Open(Data as MemoryBlock) as X509MBS
- shared method Open(Data as String) as X509MBS
- shared method ReadFromPkcs12(Data as String, Pass as String, byref PKey as PKeyMBS, byref Cert as X509MBS, byref certs() as X509MBS) as Boolean
- shared method ReadFromPkcs7(Data as String, Pass as String, byref certs() as X509MBS) as Boolean
- method Verify(PublicKey as PKeyMBS) as Integer
- property Description as String
- property Handle as Integer
- property IssuerName as Dictionary
- property Name as String
- property PublicKey as PKeyMBS
- property SerialNumber as String
- property SubjectName as Dictionary
- property ValidNotAfter as Date
- property ValidNotAfterDateTime as DateTime
- property ValidNotBefore as Date
- property ValidNotBeforeDateTime as DateTime
- property Version as Integer
- class Argon2MBS
- Class Extensions
- class Memoryblock
- method CRC_32ContMBS(offset as Integer, numBytes as Integer, prevCRC as UInt32) as UInt32
- method CRC_32MBS(offset as Integer, numBytes as Integer) as UInt32
- method CRC_CCITTContMBS(offset as Integer, numBytes as Integer, prevCRC as UInt32) as UInt32
- method CRC_CCITTMBS(offset as Integer, numBytes as Integer) as UInt32
- method CRC_DillonMBS(bitWidth as Integer, offset as Integer, numBytes as Integer) as String
- class Memoryblock
- Modules
- module BCryptMBS
- method BCrypt(Pass as String, Salt as String) as String
- method BCryptSalt(Rounds as Integer) as String
- method Verify(Pass as String, Hash as String) as Boolean
- module OpenSSLMBS
- method ErrorString(ErrorCode as Integer) as string
- method GeneratePrivateKey(Bits as Integer = 4096, Exp as Integer = 65537, Password as string = "", Algorithm as string = "") as string
- method GetPublicKey(PrivateKey as String, PrivateKeyPassword as string = "") as string
- method OpenSSLVersion as String
- method PKCS7Sign(flags as Integer, InputData as string, SignKey as string, PrivateKey as String, PrivateKeyPassword as string, intermediaCertsData() as string, OutputBinary as boolean) as string
- method PKCS7SignData(Certificate as X509MBS, PrivateKey as PKeyMBS, certs() as X509MBS = nil, data as string, flags as Integer = 0) as string
- method PKCS7SignedData(DataP7M as String) as String
- method RandomBytes(count as Integer) as MemoryBlock
- method RandomBytesString(count as Integer) as String
- method RSAPrivateDecrypt(data as string, PrivateKey as string, padding as Integer = 1, Password as string = "") as String
- method RSAPrivateEncrypt(data as string, PrivateKey as string, padding as Integer = 1, Password as string = "") as String
- method RSAPublicDecrypt(data as string, PublicKey as string, padding as Integer = 1, Password as string = "") as String
- method RSAPublicEncrypt(data as string, PublicKey as string, padding as Integer = 1, Password as string = "") as String
- method SignData(data as string, key as string, Password as string = "") as string
- method SignData(data as string, key as string, Password as string = "", Algorithm as Integer) as string
- method SMimePKCS7Decrypt(InputData as string, Certificate as X509MBS, SignKey as PKeyMBS) as String
- method SMimePKCS7Encrypt(InputData as string, Certificate as X509MBS) as String
- method SMimePKCS7Sign(InputData as string, Certificate as X509MBS, SignKey as PKeyMBS) as String
- method SMimePKCS7Verify(InputData as string, Certificate as X509MBS) as String
- method VerifyData(data as string, Signature as string, Key as string, Password as string = "") as boolean
- method VerifyData(data as string, Signature as string, Key as string, Password as string = "", Algorithm as Integer) as boolean
- const kAlgorithmSHA1 = 1
- const kAlgorithmSHA224 = 2
- const kAlgorithmSHA256 = 3
- const kAlgorithmSHA384 = 4
- const kAlgorithmSHA512 = 5
- const kPaddingNone = 3
- const kPaddingPKCS1 = 1
- const kPaddingPKCS1OAEP = 4
- const kPaddingSSLv23 = 2
- const kPaddingX931 = 5
- module PassSignerMBS
- method signPass(Pass as folderitem, CertSuffix as String, Output as folderitem, Zip as boolean = true) as boolean
- method verifyPassSignature(pass as folderitem) as Boolean
- module TwofishMBS
- method DecryptCBC(Key as MemoryBlock, InputData as MemoryBlock, IV as MemoryBlock) as MemoryBlock
- method DecryptCBC(Key as String, InputData as String, IV as String) as String
- method DecryptECB(Key as MemoryBlock, InputData as MemoryBlock) as MemoryBlock
- method DecryptECB(Key as String, InputData as String) as String
- method EncryptCBC(Key as MemoryBlock, InputData as MemoryBlock, IV as MemoryBlock) as MemoryBlock
- method EncryptCBC(Key as String, InputData as String, IV as String) as String
- method EncryptECB(Key as MemoryBlock, InputData as MemoryBlock) as MemoryBlock
- method EncryptECB(Key as String, InputData as String) as String
- module BCryptMBS
- Blog Entries
The items on this page are in the following plugins: MBS Compression Plugin, MBS Encryption Plugin, MBS MacExtras Plugin, MBS MacOSX Plugin, MBS Util Plugin.
Feedback: Report problem or ask question.
