Learn R Programming

ribiosUtils (version 1.7.7)

pwdecode: Decode password with function implemented with pwencode

Description

Decode password encypted with pwencode.

Usage

pwdecode(password)

Value

Decoded character string, or empty string if decoding fails

Arguments

password

Character string to be decoded. If starting with a empty character, the string is sent for decoding; otherwise, it is deemed as clear text password and returned.

Author

Jitao David Zhang <jitao_david.zhang@roche.com>. The C library code was written by Detlef Wolf.

Details

See pwdecode function documentation in BIOS for implemetnation details.

Note that since R does not support strings embedding null values (\000), the password to be decoded has to be given with two slashes, e.g. ‘ \001\000\129\235’.

Examples

Run this code

mycode <- " \\001\\000\\141\\314\\033\\033\\033\\033\\033\\142\\303\\056\\166\\311\\037\\042"
pwdecode(mycode)

Run the code above in your browser using DataLab