Lines Matching refs:input
86 function Base64_encode(input) { argument
89 for (var i = 0; i < input.length; ) {
90 c1 = input.charCodeAt(i++);
92 c2 = input.charCodeAt(i++);
94 c3 = input.charCodeAt(i++);
106 function Base64_encode_pass(input) { argument
109 for (var i = 0; i < input.length; ) {
110 c1 = input.charCodeAt(i++);
114 c2 = input.charCodeAt(i++);
118 c3 = input.charCodeAt(i++);
132 function Base64_decode(input) { argument
135 input = input.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/, "").replace(/[^\w\+\/\=]/g, "");
136 for (var i = 0; i < input.length; ) {
137 e1 = Base64_map.indexOf(input.charAt(i++));
138 e2 = Base64_map.indexOf(input.charAt(i++));
141 e3 = Base64_map.indexOf(input.charAt(i++));
146 e4 = Base64_map.indexOf(input.charAt(i++));
3856 throw new Error("Bad input format: expected Buffer or string");