REENCYPT

Synopsis

HELP:   Parameter for session key re-encryption
TYPE:   OBJECT
SYNTAX: REENCYPT(MODE=ADD/SET,PASSWORD['bin'...],USERID/RECEIVER['str'...],FKM5())

Description

Activates OpenPGP re-encryption based on passwords or the FLAM5 key management extension (FKM5).

If re-encryption is used, the payload data will not be re-encrypted. Only the encrypted session key gets re-encrypted with the provided password or public key, making this operation very fast.

The following re-encrytion modes are supported:

The feature is useful with "read.binary(... decode decrypt.pgp(...))) write.binary()". If the PGP file was ASCII-armored and you activate ARMOR encoding when writing (write.binary(... encode.armor())), the ASCII-armor header is copied from the original file. If the PGP file, was not ASCII-armored and ARMOR encoding is activated when writing, the data format and character set of the encrypted data is not known and therefore cannot be added as ASCII-armor header by default.

Examples:

 FLCL CONV "
   READ.BINARY(
      FILE='my.pgp'
      DECODE=DECRYP
      DECRYPT.PGP(
         FKM5(...)
         REENCYPT(
            USERID='Berta'
            FKM5(...)
         )
      )
   )
   WRITE.BINARY(
      FILE='myandbertas.pgp.txt'
      ENCODE.ARMOR()
   )"

Arguments