pwdecode: Decode password with function implemented with pwencode

Description Usage Arguments Details Value Author(s) Examples

View source: R/pwdecode.R

Description

Decode password encypted with pwencode.

Usage

1
pwdecode(password)

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.

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’.

Value

Decoded character string, or empty string if decoding fails

Author(s)

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

Examples

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

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.