angular-utf8-base64

WebJar for angular-utf8-base64

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-utf8-base64
Last Version

Last Version

0.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

angular-utf8-base64
WebJar for angular-utf8-base64
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/stranger82/angular-utf8-base64

Download angular-utf8-base64

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-utf8-base64/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-utf8-base64</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-utf8-base64/
implementation 'org.webjars.bower:angular-utf8-base64:0.0.5'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-utf8-base64/
implementation ("org.webjars.bower:angular-utf8-base64:0.0.5")
'org.webjars.bower:angular-utf8-base64:jar:0.0.5'
<dependency org="org.webjars.bower" name="angular-utf8-base64" rev="0.0.5">
  <artifact name="angular-utf8-base64" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-utf8-base64', version='0.0.5')
)
libraryDependencies += "org.webjars.bower" % "angular-utf8-base64" % "0.0.5"
[org.webjars.bower/angular-utf8-base64 "0.0.5"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.0.8,)

Project Modules

There are no modules declared in this project.

angular-utf8-base64

AngularJS service for UTF-8 and Base64 and Base64url Javascript Encoding

angular-utf8-base64 is based on Really fast Javascript Base64 encoder/decoder with utf-8 support. I just wrapped it as AngularJS service.

There is another AngularJS service for Base64 encoding available. But it doesn't support UTF-8.

Installation

Bower

bower install angular-utf8-base64
<script src="bower_components/angular-utf8-base64/angular-utf8-base64.min.js"></script>

Usage

angular
    .module('myApp', ['ab-base64'])
    .controller('myController', [

        '$scope','base64',
        function($scope,base64) {

            $scope.encoded = base64.encode('a string');
            $scope.decoded = base64.decode('YSBzdHJpbmc=');
    }]);

Base64Url Support

Commonly used for supporting JWS and JWT encodings, base64url encoding creates a URL safe output.

angular
    .module('myApp', ['ab-base64'])
    .controller('myController', [

        '$scope','base64',
        function($scope,base64) {

            $scope.encoded = base64.urlencode('a string');
            $scope.decoded = base64.urldecode('YSBzdHJpbmc');
    }]);

Versions

Version
0.0.5