OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library crypto.base64; | |
6 | |
7 import 'dart:convert'; | 5 import 'dart:convert'; |
8 | 6 |
9 import 'base64/decoder.dart'; | 7 import 'base64/decoder.dart'; |
10 import 'base64/encoder.dart'; | 8 import 'base64/encoder.dart'; |
11 | 9 |
12 /// An instance of the default implementation of [Base64Codec]. | 10 /// An instance of the default implementation of [Base64Codec]. |
13 /// | 11 /// |
14 /// This provides convenient access to most common Base64 use-cases. | 12 /// This provides convenient access to most common Base64 use-cases. |
15 const Base64Codec BASE64 = const Base64Codec(); | 13 const Base64Codec BASE64 = const Base64Codec(); |
16 | 14 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 encodePaddingCharacter: encodePaddingCharacter).convert(bytes); | 73 encodePaddingCharacter: encodePaddingCharacter).convert(bytes); |
76 } | 74 } |
77 | 75 |
78 Base64Encoder get encoder => new Base64Encoder( | 76 Base64Encoder get encoder => new Base64Encoder( |
79 urlSafe: _urlSafe, | 77 urlSafe: _urlSafe, |
80 addLineSeparator: _addLineSeparator, | 78 addLineSeparator: _addLineSeparator, |
81 encodePaddingCharacter: _encodePaddingCharacter); | 79 encodePaddingCharacter: _encodePaddingCharacter); |
82 | 80 |
83 Base64Decoder get decoder => const Base64Decoder(); | 81 Base64Decoder get decoder => const Base64Decoder(); |
84 } | 82 } |
OLD | NEW |