securekeyEncrypt

Typehandler
Dictionarylibrary.securekey
LibrarySecure Key Storage
Syntax
securekeyEncrypt(<pIdentifier>,<pMessage>)
Associationscom.livecode.library.securekey
Summary

Encrypt a message using the securekey.

Editionpro
OSmac, ios, android
Platformsdesktop, mobile
Parameters
NameTypeDescription
pIdentifier

A string used to identify the securekey.

pMessage

The message data to be encrypted

Example
if securekeyExists("foo") then
	return securekeyEncrypt("foo", "bar")
end if
Values
NameTypeDescription
return

The encrypted message data

Description

Encrypts message using the securekey with the given identifier. The returned data can only be decrypted by using securekeyDecrypt.

NOTE: The Secure Key Storage library uses APIs available on iOS 10.0+, macOS 10.12+ and Android 4.3.

Tagssecure key storage library,encryption,secure key storage library,encryption