Re: [Dev] Base64 encoding in jaggery
Thanks Dakshika, I used javax.xml.bind.DatatypeConverter.printBase64Binary(). On Thu, Nov 12, 2015 at 11:58 AM, Dakshika Jayathilakawrote: > Hi, > > If your using jaggery sso module[1] you can use sso.client.b64encode() as > wel. > > [1] https://github.com/wso2/jaggery-extensions/tree/master/sso > > Regards, > > *Dakshika Jayathilaka* > PMC Member & Committer of Apache Stratos > Senior Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > On Wed, Nov 11, 2015 at 4:38 PM, Kalpa Welivitigoda > wrote: > >> Thanks all. >> >> On Wed, Nov 11, 2015 at 3:32 PM, Inshaf Mahath wrote: >> >>> Hi Kalpa, >>> >>> You can try on JavaScript to encode and decode base64 string. You can >>> have a look on [1]. >>> >>> [1] >>> http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript >>> >>> >>> Thanks with best regards, >>> Inshaf >>> >>> On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasa >>> wrote: >>> Hi, Sorry for the typing mistake ... you can import the java method for Base64 encoding inside the jaggery and use it ... Regards, On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa wrote: > Hi, > > As far as i know there is no inbuilt method for jaggery but u > import the java method for Base64 encoding inside the jaggery and use > it > > Regards, > > On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda > wrote: > >> Hi all, >> >> Is the $subject possible? >> >> My requirement is to encode username/password in Base64 to be used to >> call a REST API. >> >> -- >> Best Regards, >> >> Kalpa Welivitigoda >> Software Engineer, WSO2 Inc. http://wso2.com >> Email: kal...@wso2.com >> Mobile: +94776509215 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Nipuna Marcus > *Software Engineer* > WSO2 Inc. > http://wso2.com/ - "lean . enterprise . middleware" > Mobile : +94 (0) 713 667906 > nipu...@wso2.com > -- Nipuna Marcus *Software Engineer* WSO2 Inc. http://wso2.com/ - "lean . enterprise . middleware" Mobile : +94 (0) 713 667906 nipu...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >>> -- >>> Inshaf Mahath >>> >>> >> >> >> -- >> Best Regards, >> >> Kalpa Welivitigoda >> Software Engineer, WSO2 Inc. http://wso2.com >> Email: kal...@wso2.com >> Mobile: +94776509215 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Base64 encoding in jaggery
Hi all, Is the $subject possible? My requirement is to encode username/password in Base64 to be used to call a REST API. -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Base64 encoding in jaggery
Hi, Sorry for the typing mistake ... you can import the java method for Base64 encoding inside the jaggery and use it ... Regards, On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasawrote: > Hi, > > As far as i know there is no inbuilt method for jaggery but u import > the java method for Base64 encoding inside the jaggery and use it > > Regards, > > On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda > wrote: > >> Hi all, >> >> Is the $subject possible? >> >> My requirement is to encode username/password in Base64 to be used to >> call a REST API. >> >> -- >> Best Regards, >> >> Kalpa Welivitigoda >> Software Engineer, WSO2 Inc. http://wso2.com >> Email: kal...@wso2.com >> Mobile: +94776509215 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Nipuna Marcus > *Software Engineer* > WSO2 Inc. > http://wso2.com/ - "lean . enterprise . middleware" > Mobile : +94 (0) 713 667906 > nipu...@wso2.com > -- Nipuna Marcus *Software Engineer* WSO2 Inc. http://wso2.com/ - "lean . enterprise . middleware" Mobile : +94 (0) 713 667906 nipu...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Base64 encoding in jaggery
We do base64 encoding by our implementation in bpmn-explorer. refer [1] [1] https://github.com/wso2/carbon-business-process/blob/master/components/bpmn/bpmn-explorer-web/src/web/assets/encoder.js On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasawrote: > Hi, > > Sorry for the typing mistake ... > > you can import the java method for Base64 encoding inside the jaggery and > use it ... > > Regards, > > On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa > wrote: > >> Hi, >> >> As far as i know there is no inbuilt method for jaggery but u >> import the java method for Base64 encoding inside the jaggery and use it >> >> Regards, >> >> On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda >> wrote: >> >>> Hi all, >>> >>> Is the $subject possible? >>> >>> My requirement is to encode username/password in Base64 to be used to >>> call a REST API. >>> >>> -- >>> Best Regards, >>> >>> Kalpa Welivitigoda >>> Software Engineer, WSO2 Inc. http://wso2.com >>> Email: kal...@wso2.com >>> Mobile: +94776509215 >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Nipuna Marcus >> *Software Engineer* >> WSO2 Inc. >> http://wso2.com/ - "lean . enterprise . middleware" >> Mobile : +94 (0) 713 667906 >> nipu...@wso2.com >> > > > > -- > Nipuna Marcus > *Software Engineer* > WSO2 Inc. > http://wso2.com/ - "lean . enterprise . middleware" > Mobile : +94 (0) 713 667906 > nipu...@wso2.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Milinda Perera Software Engineer; WSO2 Inc. http://wso2.com , Mobile: (+94) 714 115 032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Base64 encoding in jaggery
Hi Kalpa, You can try on JavaScript to encode and decode base64 string. You can have a look on [1]. [1] http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript Thanks with best regards, Inshaf On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasawrote: > Hi, > > Sorry for the typing mistake ... > > you can import the java method for Base64 encoding inside the jaggery and > use it ... > > Regards, > > On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa > wrote: > >> Hi, >> >> As far as i know there is no inbuilt method for jaggery but u >> import the java method for Base64 encoding inside the jaggery and use it >> >> Regards, >> >> On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda >> wrote: >> >>> Hi all, >>> >>> Is the $subject possible? >>> >>> My requirement is to encode username/password in Base64 to be used to >>> call a REST API. >>> >>> -- >>> Best Regards, >>> >>> Kalpa Welivitigoda >>> Software Engineer, WSO2 Inc. http://wso2.com >>> Email: kal...@wso2.com >>> Mobile: +94776509215 >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Nipuna Marcus >> *Software Engineer* >> WSO2 Inc. >> http://wso2.com/ - "lean . enterprise . middleware" >> Mobile : +94 (0) 713 667906 >> nipu...@wso2.com >> > > > > -- > Nipuna Marcus > *Software Engineer* > WSO2 Inc. > http://wso2.com/ - "lean . enterprise . middleware" > Mobile : +94 (0) 713 667906 > nipu...@wso2.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Inshaf Mahath ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Base64 encoding in jaggery
Thanks all. On Wed, Nov 11, 2015 at 3:32 PM, Inshaf Mahathwrote: > Hi Kalpa, > > You can try on JavaScript to encode and decode base64 string. You can have > a look on [1]. > > [1] > http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript > > > Thanks with best regards, > Inshaf > > On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasa > wrote: > >> Hi, >> >> Sorry for the typing mistake ... >> >> you can import the java method for Base64 encoding inside the jaggery and >> use it ... >> >> Regards, >> >> On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa >> wrote: >> >>> Hi, >>> >>> As far as i know there is no inbuilt method for jaggery but u >>> import the java method for Base64 encoding inside the jaggery and use it >>> >>> Regards, >>> >>> On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda >>> wrote: >>> Hi all, Is the $subject possible? My requirement is to encode username/password in Base64 to be used to call a REST API. -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >>> -- >>> Nipuna Marcus >>> *Software Engineer* >>> WSO2 Inc. >>> http://wso2.com/ - "lean . enterprise . middleware" >>> Mobile : +94 (0) 713 667906 >>> nipu...@wso2.com >>> >> >> >> >> -- >> Nipuna Marcus >> *Software Engineer* >> WSO2 Inc. >> http://wso2.com/ - "lean . enterprise . middleware" >> Mobile : +94 (0) 713 667906 >> nipu...@wso2.com >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Inshaf Mahath > > -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Base64 encoding in jaggery
Hi, As far as i know there is no inbuilt method for jaggery but u import the java method for Base64 encoding inside the jaggery and use it Regards, On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigodawrote: > Hi all, > > Is the $subject possible? > > My requirement is to encode username/password in Base64 to be used to call > a REST API. > > -- > Best Regards, > > Kalpa Welivitigoda > Software Engineer, WSO2 Inc. http://wso2.com > Email: kal...@wso2.com > Mobile: +94776509215 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Nipuna Marcus *Software Engineer* WSO2 Inc. http://wso2.com/ - "lean . enterprise . middleware" Mobile : +94 (0) 713 667906 nipu...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Base64 encoding in jaggery
Hi, If your using jaggery sso module[1] you can use sso.client.b64encode() as wel. [1] https://github.com/wso2/jaggery-extensions/tree/master/sso Regards, *Dakshika Jayathilaka* PMC Member & Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Nov 11, 2015 at 4:38 PM, Kalpa Welivitigodawrote: > Thanks all. > > On Wed, Nov 11, 2015 at 3:32 PM, Inshaf Mahath wrote: > >> Hi Kalpa, >> >> You can try on JavaScript to encode and decode base64 string. You can >> have a look on [1]. >> >> [1] >> http://stackoverflow.com/questions/246801/how-can-you-encode-a-string-to-base64-in-javascript >> >> >> Thanks with best regards, >> Inshaf >> >> On Wed, Nov 11, 2015 at 3:24 PM, Nipuna Chandradasa >> wrote: >> >>> Hi, >>> >>> Sorry for the typing mistake ... >>> >>> you can import the java method for Base64 encoding inside the jaggery >>> and use it ... >>> >>> Regards, >>> >>> On Wed, Nov 11, 2015 at 3:23 PM, Nipuna Chandradasa >>> wrote: >>> Hi, As far as i know there is no inbuilt method for jaggery but u import the java method for Base64 encoding inside the jaggery and use it Regards, On Wed, Nov 11, 2015 at 3:08 PM, Kalpa Welivitigoda wrote: > Hi all, > > Is the $subject possible? > > My requirement is to encode username/password in Base64 to be used to > call a REST API. > > -- > Best Regards, > > Kalpa Welivitigoda > Software Engineer, WSO2 Inc. http://wso2.com > Email: kal...@wso2.com > Mobile: +94776509215 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Nipuna Marcus *Software Engineer* WSO2 Inc. http://wso2.com/ - "lean . enterprise . middleware" Mobile : +94 (0) 713 667906 nipu...@wso2.com >>> >>> >>> >>> -- >>> Nipuna Marcus >>> *Software Engineer* >>> WSO2 Inc. >>> http://wso2.com/ - "lean . enterprise . middleware" >>> Mobile : +94 (0) 713 667906 >>> nipu...@wso2.com >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Inshaf Mahath >> >> > > > -- > Best Regards, > > Kalpa Welivitigoda > Software Engineer, WSO2 Inc. http://wso2.com > Email: kal...@wso2.com > Mobile: +94776509215 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev