create account

HOW TO: get Your Private Posting Key (the easy way) by dv8

View this thread on: hive.blogpeakd.comecency.com
· @dv8 ·
HOW TO: get Your Private Posting Key (the easy way)
![PPK.png](https://steemitimages.com/DQmXTgU9h7HDGgco5MKgz9UxWeWuyBfFCLdbetNZ5GDgVPC/PPK.png)

Private Posting Key (PPK) is part of role delegation toolkit of Steemit. PPK authority over your account is limited to posting action, unlike your WIF key, which grants unrestricted access to your account and which you use to access Steemit site. Whoever has your WIF has full control over your account. For this reason, please do not use your WIF key outside of Steemit platform. 

By using PPK however you get to enjoy the benefits of growing number of sites, such as
>dtube.video  
dsound.audio
dmania.lol

which enrich Steemit ecosystem, while maintaining control of your account. 

In this short article, I’ll show you how to get your Private Posting Key in under 20 seconds.

###### Disclaimer: Please note that this article is for educational purposes, designed to show the use of steem Js official library and this code is provided "as is" and any expressed or implied warranties , are disclaimed. In no event shall I, or any of their contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption). Please store and use your access keys in a secure environment!  


We’ll be using [an official steem js library]( https://github.com/steemit/steem-js/tree/master/doc)  CDN link and online Js sandbox environment called Fiddle to generate the Private Posting Key.

* Step 1: Go to [https://jsfiddle.net/](https://jsfiddle.net/)
* Step 2: In the First Quadrant (the one which says HTML) paste Steem CDN link in script tags:
```
<script src="//cdn.steemjs.com/lib/latest/steem.min.js"></script>
```
* Step 3: Right underneath the First Quadrant, you will see another one named Javascript, post this code in there:
```
function print (callback){
var res = steem.auth.getPrivateKeys('yourSteemitUsername', 'yourWIF');
	callback(res);
};

print(function(keys){
	alert("Your Private Key: "+keys.postingPubkey);
});

```
* Step 4: Now substitute 'yourSteemitUsername' and 'yourWIF', to your real credentials, keep the commas in place like so:
```
function print (callback){
var res = steem.auth.getPrivateKeys('testo', 
'WEqRKWvZNY723Kla2JptLvWPFMiJrH7yVMDFGdWRRcKbZW29sXh7BgymR');
	callback(res);
};

print(function(keys){
	alert("Your Private Key: "+keys.postingPubkey);
});

```
* Step 5: Finally,  at the top right locate the “Run” button and click it. After a short while, you will see a popup with your Private Posting Key. That’s it!

Here is a small shortclip of steps taken:
![PPK-min.gif](https://steemitimages.com/DQmejWwVzqBKdAxbvMpngL4B9ekJM2utunzNiH1vkpfp2Wh/PPK-min.gif)

![follow-min.png](https://steemitimages.com/DQmZGdVbLpfqM4B6fEeDuEFfHQAkpdRToronB6nVuDZDBxA/follow-min.png)
👍  , , , , ,
👎  
properties (23)
authordv8
permlinkhow-to-get-your-private-posting-key-the-easy-way
categorysteemiteducation
json_metadata{"tags":["steemiteducation","steemdev","programming","dtube","dmania"],"image":["https://steemitimages.com/DQmXTgU9h7HDGgco5MKgz9UxWeWuyBfFCLdbetNZ5GDgVPC/PPK.png","https://steemitimages.com/DQmejWwVzqBKdAxbvMpngL4B9ekJM2utunzNiH1vkpfp2Wh/PPK-min.gif","https://steemitimages.com/DQmZGdVbLpfqM4B6fEeDuEFfHQAkpdRToronB6nVuDZDBxA/follow-min.png"],"links":["https://github.com/steemit/steem-js/tree/master/doc","https://jsfiddle.net/"],"app":"steemit/0.1","format":"markdown"}
created2017-10-14 21:45:21
last_update2017-10-14 21:45:21
depth0
children1
last_payout2017-10-21 21:45:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,864
author_reputation524,038,395,595
root_title"HOW TO: get Your Private Posting Key (the easy way)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id17,699,724
net_rshares4,860,062,058
author_curate_reward""
vote details (7)
@tjmac ·
This seems like a scam to get people's Steemit login credentials?
👍  
properties (23)
authortjmac
permlinkre-dv8-how-to-get-your-private-posting-key-the-easy-way-20180814t065510664z
categorysteemiteducation
json_metadata{"tags":["steemiteducation"],"app":"steemit/0.1"}
created2018-08-14 06:55:03
last_update2018-08-14 06:55:03
depth1
children0
last_payout2018-08-21 06:55:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length65
author_reputation-2,246,892,471
root_title"HOW TO: get Your Private Posting Key (the easy way)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id68,136,030
net_rshares0
author_curate_reward""
vote details (1)