This modul can generate PersistentNameID (and the value for eduPersonTargetedID) with the same algorithm as Shibboleth IdP does. You would need this module if you migrate your IdP from Shibboleth to SimpleSAMLphp, and don't want the ePTID values to be changed.
You have to use the same secretsalt
as you did at Shibboleth IdP.
Put into the authproc.idp
section:
5 => array(
'class' => 'shib2idpnameid:PersistentNameID',
'nameId' => true,
'attribute' => 'uid',
'attributename' => 'eduPersonTargetedID'
),