팩토리 » Api

base64decode

Description

factory base64encode API Encoding된 텍스트를 Decoding한 문자열을 반환한다.

Parameters

Parameters Type Description
strEncText STRING base64encode API로 Encoding된 텍스트

Return Value

Type Description
BOOL 디코딩된 문자열 또는 오류 발생시 null

Remark

window.btoa와 다른 점은 ASCII 문자 이외의 문자도 처리하는 기능을 수행한다.

IE 11에서는 window.btoa API를 사용하여 처리하며, ASCII 문자가 아닌 문자열이 포함된 경우, 정상 처리 되지 않을 수 있다.

Example

function btn_on_mouseup() { var strEncText; // BASE64로 인코딩된 문자열 반환 및 로깅 strEncText = factory.base64encode("소프트베이스"); factory.consoleprint(strEncText); // BASE64로 인코딩된 문자열을 디코딩하여 출력 factory.consoleprint(factory.base64decode(strEncText)); }

See Also

base64encode

Viewer Ver.

24.7.2.1

Update Date

20240702