Encryption key for realm db

(anjali rughani) #1

Can we provide any other key than 64 bit Int8Array value to encrypt realm db?

(Kenneth Geisshirt) #2

The encryption key has to be 512 bits (64 bytes). We don’t support any other length of the key.

(anjali rughani) #4

Length is fine. But can we pass any text and get 512 bits . texts like key = “[email protected]$$W0RD” ?

(Kenneth Geisshirt) #5

You have to transform the password to 64 bytes. A password shorter than 64 characters can be padded with zeros.