4D v19dataStore.provideDataKey( ) |
|||||||||||||||||||||||||||||||||||||||||
|
4D v19
dataStore.provideDataKey( )
|
Property | Type | Description | |
success | Boolean | True if the provided encryption key matches the encrypted data, False otherwise | |
Properties below are returned only if success is FALSE | |||
status | Number | Error code (4 if the provided encryption key is wrong) | |
statusText | Text | Error message | |
errors | Collection | Stack of errors. The first error has the highest index | |
[ ].componentSignature | Text | Internal component name | |
[ ].errCode | Number | Error number | |
[ ].message | Text | Error message |
If no curPassphrase or curDataKey is given, dataStore.provideDataKey( ) returns null (no error is generated).
C_OBJECT($keyStatus)
C_TEXT($passphrase)
$passphrase:=Request("Enter the passphrase")
If(OK=1)
$keyStatus:=ds.provideDataKey($passphrase)
If($keyStatus.success)
ALERT("You have provided a valid encryption key")
Else
ALERT("You have provided an invalid encryption key, you will not be able to work with encrypted data")
End if
End if
4D Blog - New 4D commands to work with encrypted data
Data file encryption status
Encrypt data file
New data key
Product: 4D
Theme: ORDA - DataStore
4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)